/* src/components/css/form.css */

.form-container {
  background-color: rgb(33, 28, 37);
  /* 页面背景色 */
  min-height: 80vh;
  display: flex;
  justify-content: center;
  padding: 20px;
}

.user-form {
  padding-bottom: 40px;
  border-radius: 8px;
  width: 100%;
  max-width: 600px;
  color: #ffffff;
  /* 全局文字颜色设置为白色 */
}

.user-form .form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.user-form label {
  margin-bottom: 5px;
  font-weight: bold;
}

.user-form .required {
  color: red;
}

.user-form input[type="text"],
.user-form input[type="number"],
.user-form input[type="tel"],
.user-form textarea,
.user-form .react-select__control {
  padding: 10px;
  font-size: 16px;
  border-radius: 4px;
  border: 1px solid #555555;
  background-color: #444444;
  /* 输入框背景色 */
  color: #ffffff;
  /* 输入框文字颜色 */
}

.user-form input::placeholder,
.user-form textarea::placeholder {
  color: #cccccc;
  /* 输入框占位符颜色 */
}

.user-form .radio-group {
  display: flex;
  gap: 20px;
}

.user-form .radio-option {
  display: flex;
  align-items: center;
}

.user-form .radio-option input {
  margin-right: 5px;
}

.user-form .dropzone {
  border: 2px dashed #555555;
  border-radius: 4px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  background-color: #444444;
  color: #ffffff;
}

.user-form .dropzone p {
  margin: 0;
}

.image-preview,
.preview-image {
  max-width: 100%;
  height: auto;
}

.preview {
  display: inline-block;
  margin: 10px;
}


.user-form .preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.user-form .remove-button {
  position: absolute;
  top: 55px;
  left: 98px;
  background-color: red;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.user-form .upload-button {
  width: 80px;
  height: 80px;
  /* padding: 10px 15px; */
  background-color: #ffffff;
  color: #2c2c34;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 10px;
}

.user-form .upload-button:hover {
  background-color: #dddddd;
}

.user-form .image-preview {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
  margin-top: 10px;
}

.user-form .cropper-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
}

.user-form .cropper-modal {
  background-color: #2c2c34;
  padding: 20px;
  border-radius: 8px;
  width: 80%;
  max-width: 500px;
  color: #ffffff;
}

.user-form .cropper-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.user-form .confirm-button,
.user-form .cancel-button {
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.user-form .confirm-button {
  background-color: #4caf50;
  color: #ffffff;
}

.user-form .cancel-button {
  background-color: #f44336;
  color: #ffffff;
}

.user-form .submit-button {
  padding: 12px 20px;
  background-color: #ffffff;
  color: #2c2c34;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  font-size: 16px;
}

.user-form .submit-button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.user-form .input-error {
  border-color: red;
}

.user-form .select-error .react-select__control {
  border-color: red !important;
  color: black;
}

.user-form .error-message {
  color: #ff6b6b;
  font-size: 14px;
  margin-top: 5px;
}

.select-error-sel {
  color: black;
}

.upload-dropzone {
  border: 2px dashed #ccc;
  padding: 20px;
  text-align: center;
  margin-top: 10px;
}

.upload-dropzone p {
  color: #888;
}

.image-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.image-preview {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 5px;
}

.success-message {
  width: 100%;
  text-align: center;
  color: black;

  div{
    margin-bottom: 18rem;
  }

  button {
    width: 13rem;
    height: 3.25rem;
    background-color: rgb(255, 97, 97);
    box-shadow: .3125rem .3125rem 1.25rem rgba(255, 141, 141, 0.4);
    border: 0;
    border-radius: 0.5rem;
    color: white;
    font-size: 1rem;
    margin-top: 200px;
  }

  h3{
    color: gray;
    margin-top: 8rem;
  }
}
